<?php
/**
 * Created by PhpStorm.
 * User: 64423
 * Date: 2018/10/10
 * Time: 16:25
 */

namespace app\shop\validate;


use think\Validate;

class Goods extends Validate
{
    protected $rule = [
        'name' => 'require',
        'cate_id' => 'require',
        'market_price' => 'require',
        'shop_price' => 'require',
        'postage' => 'require'
    ];

    protected $message = [
        'name.require' => '请输入商品名称',
        'cate_id.require' => '请选择商品分类',
        'market_price.require' => '请输入商品市场价格',
        'shop_price.require' => '请输入商品本店价格',
        'postage.require' => '请输入邮费',
    ];
}